package com.wfx.controller;


import com.wfx.entity.Result;
import com.wfx.entity.WxbGoodsSku;
import com.wfx.service.IWxbGoodsSkuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/goodsSku")
@CrossOrigin
public class WxbGoodsSkuController {
    @Autowired
    private IWxbGoodsSkuService iWxbGoodsSkuService;
    @RequestMapping("/findSku")
    public Result<WxbGoodsSku> findSku(String goodsId){
        return iWxbGoodsSkuService.findSku(goodsId);
    }


    @RequestMapping("findSkuById")
    public WxbGoodsSku findSkuById(String skuId){

        return iWxbGoodsSkuService.getById(skuId);
    }

}
